/**
 * @author Jialun Bian
 * @version 1.0
 */
package userInterface;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class CommandPanel extends JPanel implements ActionListener{
	private JTextField commandField;
    public CommandPanel() {
        super(new BorderLayout());

        commandField = new JTextField(80);
        commandField.addActionListener(this);
        add(commandField,BorderLayout.PAGE_END);
    }
    public void actionPerformed(ActionEvent e) {
        String cmd = e.getActionCommand();
        assembuler.Assembuler.executeSimpleCodeBlocks(cmd);
        commandField.setText("");
        
        //inplement the cmd
    }

}
